cmake_minimum_required(VERSION 3.20)
project(print-system-info)
include(CMakePrintSystemInformation)
# 输出：
# CMAKE_SYSTEM is Windows-...
# CMAKE_SYSTEM file is Platform/Windows
# CMAKE_C_COMPILER is ...
# CMAKE_CXX_COMPILER is ...
# CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS is -shared
# ...